/*
 * @Author: sy
 * @Date: 2021-12-30 08:38:44
 * @LastEditTime: 2022-07-18 19:25:28
 * @Description: file content
 */
import layoutHeaderAside from "@/layout/header-aside";

// 由于懒加载页面太多的话会造成webpack热更新太慢，所以开发环境不使用懒加载，只有生产环境使用懒加载
const _import = require("@/libs/util.import." + process.env.NODE_ENV);

const meta = { auth: true, cache: true };

export default {
  path: "/header",
  name: "header-components",
  meta: { ...meta, level: 0 },
  component: layoutHeaderAside,
  children: [
    {
      path: "schedule",
      name: "header-schedule",
      component: _import("system/header/schedule.vue"),
      meta: { ...meta, title: "待办事项" }
    },
    {
      path: "schedule/audit/:id",
      name: "header-schedule-audit",
      component: _import("system/header/audit.vue"),
      meta: { ...meta, title: "待办审核" }
    },
    {
      path: "schedule/auditShow/:showId",
      name: "header-schedule-audit-show",
      component: _import("system/header/auditShow.vue"),
      meta: { ...meta, title: "待办审核" }
    },
    {
      path: "schedule/auditLook/:showId",
      name: "header-schedule-audit-look",
      component: _import("system/header/auditLook.vue"),
      meta: { ...meta, title: "我收到的" }
    },
    {
      path: "draft",
      name: "header-draft",
      component: _import("system/header/draft.vue"),
      meta: { ...meta, title: "草稿箱" }
    },
    {
      path: "warningList",
      name: "header-warningList",
      component: _import("system/header/warningList.vue"),
      meta: { ...meta, title: "异常订单预警" }
    },   
    {
      path: "warningBossLook",
      name: "header-warningBossLook",
      component: _import("system/header/warningBossLook.vue"),
      meta: { ...meta, title: "销售异常" }
    }, 
  ]
};
